#!/bin/bash
echo -n "please input a data(1-10)"
read a
if [ "$a" -lt 1 ] || [ "$a" -gt 10 ];
then echo "error"
exit 2
elif [ "$a" -lt 5 ];
then echo "$a" is less 5
else echo "$a" is not less 5
fi
